<script>
import T2 from "./Main1/T2022.vue";
import T3 from "./Main1/T2023.vue";
import T4 from "./Main1/T2024.vue";

export default {
  name: "Main1-echarts",

  components:{
    T2,
    T3,
    T4,

  },
  data() {
    return{
      value: '2024',
    }


  },
  methods:{

  }

}
</script>

<template>
  <div>
    <div>选择年份</div>
    <el-button @click="value='2022'">2022</el-button>
    <el-button @click="value='2023'">2023</el-button>
    <el-button @click="value='2024'">2024</el-button>
    <div v-if="value=='2022'">

      <T2/>
    </div>
    <div v-if="value=='2023'">

      <T3/>
    </div>
    <div v-if="value=='2024'">

      <T4/>
    </div>


  </div>

</template>

<style scoped>

</style>